smoothSlideViewTo

open fun smoothSlideViewTo(@NonNull child: @NonNull View, finalLeft: Int, finalTop: Int): Boolean(source)

Animate the view child to the given (left, top) position. If this method returns true, the caller should invoke continueSettling on each subsequent frame to continue the motion until it returns false. If this method returns false there is no further work to do to complete the movement.

This operation does not count as a capture event, though getCapturedView will still report the sliding view while the slide is in progress.

Return

true if animation should continue through continueSettling calls

Parameters

child

Child view to capture and animate

finalLeft

Final left position of child

finalTop

Final top position of child


open fun smoothSlideViewTo(@NonNull child: @NonNull View, finalLeft: Int, finalTop: Int, duration: Int, @Nullable interpolator: @Nullable Interpolator): Boolean(source)

Animate the view child to the given (left, top) position. If this method returns true, the caller should invoke continueSettling on each subsequent frame to continue the motion until it returns false. If this method returns false there is no further work to do to complete the movement.

This operation does not count as a capture event, though getCapturedView will still report the sliding view while the slide is in progress.

Return

true if animation should continue through continueSettling calls

Parameters

child

Child view to capture and animate

finalLeft

Final left position of child

finalTop

Final top position of child

duration

The time duration for the animation.

interpolator

The interpolator used for this animation.